package com.atguigu.lease.web.admin.service.Impl;

import com.atguigu.lease.model.entity.ViewAppointment;
import com.atguigu.lease.web.admin.mapper.ViewAppointmentMapper;
import com.atguigu.lease.web.admin.service.ViewAppointmentService;
import com.atguigu.lease.web.admin.vo.appointment.AppointmentQueryVo;
import com.atguigu.lease.web.admin.vo.appointment.AppointmentVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @Author: 李壮
 * @CreateTime: 2025-05-12
 * @Version: 1.0
 */

@Service
public class ViewAppointmentServiceImpl extends ServiceImpl<ViewAppointmentMapper, ViewAppointment> implements ViewAppointmentService {

    @Resource
    ViewAppointmentMapper viewAppointmentMapper;

    @Override
    public IPage<AppointmentVo> qageAppointmentByQuery(IPage<AppointmentVo> page, AppointmentQueryVo appointmentQueryVo) {

        return viewAppointmentMapper.pageAppointmentByQuery(page,appointmentQueryVo);

    }
}
